<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateBasicRecordsTextbookTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('basic_records_textbook', function (Blueprint $table) {
            $table->increments('id')->comment('自增主键id');
            $table->string('student_code')->comment('学生code');
            $table->tinyinteger('is_used')->comment('是否被使用 0:未使用;1:已使用;');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('basic_records_textbook');
    }
}
